<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--通过dojo标签库的tree标签创建树形菜单--%>
<sx:head parseContent="true"/>
<sx:tree label="商品类型" id="my">
    <sx:treenode label="家电类">
        <sx:treenode label="<a href='showShop.jsp?id=1'>彩电</a>"/>
        <sx:treenode label="<a href='showShop.jsp?id=2'>空调</a>"/>
        <sx:treenode label="<a href='showShop.jsp?id=3'>电脑</a>"/>
    </sx:treenode>
    <sx:treenode label="服饰类">
        <sx:treenode label="<a href='showShop.jsp?id=4'>绵袄</a>"/>
        <sx:treenode label="<a href='showShop.jsp?id=5'>衬衫</a>"/>
        <sx:treenode label="<a href='showShop.jsp?id=6'>牛仔裤</a>"/>
    </sx:treenode>
</sx:tree>

</body>
</html>
